<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                        <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('activtyc/round/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                        <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('activtyc/round/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                        <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('activtyc/round/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
                        <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('activtyc/round/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>

                        <div class="dropdown btn-group {:$auth->check('activtyc/round/multi')?'':'hide'}">
                            <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
                            <ul class="dropdown-menu text-left" role="menu">
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
                            </ul>
                        </div>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('activtyc/round/edit')}" 
                           data-operate-del="{:$auth->check('activtyc/round/del')}" 
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
<script id="customformtpl" type="text/html">
    <!--form表单必须添加form-commsearch这个类-->
    <form action="" class="form-horizontal form-commonsearch nice-validator n-default n-bootstrap" autocomplete="off">
        <fieldset>
            <div class="row">
              <div class="row">
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="id" class="control-label col-xs-4">{:__('Id')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="id-operate" data-name="id" value="like" readonly="" />
                 <input type="text" class="form-control" name="id" value="" placeholder="{:__('Id')}" id="id" data-index="1" />
                </div>
               </div> 
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="name" class="control-label col-xs-4">{:__('Name')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="name-operate" data-name="name" value="like" readonly="" />
                 <input type="text" class="form-control" name="name" value="" placeholder="{:__('Name')}" id="name" data-index="2" />
                </div>
               </div>
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="phone" class="control-label col-xs-4">{:__('Phone')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="phone-operate" data-name="phone" value="like" readonly="" />
                 <input type="text" class="form-control" name="phone" value="" placeholder="{:__('Phone')}" id="phone" data-index="2" />
                </div>
               </div>        
                
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="address" class="control-label col-xs-4">{:__('Address')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="address-operate" data-name="address" value="like" readonly="" />
                 <input type="text" class="form-control" name="address" value="" placeholder="{:__('Address')}" id="address" data-index="2" />
                </div>
               </div>
             
              <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="createtime" class="control-label col-xs-4">{:__('School_id')}</label>
                <div class="col-xs-8">
                     <input type="hidden" class="form-control operate" name="school_id-operate" data-name="school_id" value="=" readonly="" />
                 <input id="c-school_id" data-source="/admin/base/school/index" class="form-control selectpage "  data-primary-key="id" data-field="name" name="school_id" type="text" value="" data-index="2" >
                </div>
               </div>
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="createtime" class="control-label col-xs-4">{:__('Volume_id')}</label>
                <div class="col-xs-8">
                     <input type="hidden" class="form-control operate" name="volume_id-operate" data-name="volume_id" value="=" readonly="" />
                 <input id="c-volume_id" data-source="/admin/ques/volume/index" class="form-control selectpage "  data-primary-key="id"  data-params='{"custom[status_school]":"2"}' data-field="name" name="volume_id" type="text" value="" data-index="2" >
                </div>
               </div>
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="type_school" class="control-label col-xs-4">{:__('Type_school')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="type_school-operate" data-name="type_school" value="=" readonly="" />
                 <select class="form-control"  id="type_school" name="type_school">
                     <option value="">选择</option>
                     x<option value="1">{:__('Type_school 1')}</option>
                     x<option value="2">{:__('Type_school 2')}</option>
                 </select>
                </div>
               </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="pays" class="control-label col-xs-4">{:__('表单类型')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="pays-operate" data-name="pays" value="=" readonly="" />
                 <select class="form-control"  id="pays" name="pays">
                     <option value="">选择</option>
                     x<option value="1">{:__('送学校')}</option>
                     x<option value="2">{:__('线下取')}</option>
                     x<option value="3">{:__('9元邮费')}</option>
                     x<option value="4">{:__('支付成功')}</option>
                     x<option value="5">{:__('退款')}</option>
                 </select>
                </div>
               </div>
              <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="grade" class="control-label col-xs-4">{:__('地区')}</label>
                 <div class="col-xs-8 form-inline" data-toggle="cxselect" data-selects="shen,shi,xian">
                            <input type="hidden" class="form-control operate" name="shen-operate" data-name="shen" value="=" readonly="" />
                            <input type="hidden" class="form-control operate" name="shi-operate" data-name="shi" value="=" readonly="" />
                            <input type="hidden" class="form-control operate" name="xian-operate" data-name="xian" value="=" readonly="" />
                            <select class="shen form-control" name="shen" data-url="ajax/area_2"></select>
                            <select class="shi form-control" name="shi" data-url="ajax/area_2"></select>
                            <select class="xian form-control" name="xian" data-url="ajax/area_2"></select>
                </div>
               </div> 

               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="createtime" class="control-label col-xs-4">{:__('Createtime')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="createtime-operate" data-name="createtime" value="RANGE" readonly="" />
                 <input type="text" class="form-control datetimerange" name="createtime" data-time-picker="true" data-use-current="true" value="" placeholder="{:__('Createtime')}" id="createtime" data-index="3" />
                </div>
               </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3  pull-right">
                    <div class="col-sm-8 col-xs-offset-4">
                        <button type="submit" class="btn btn-success" formnovalidate="">提交</button>
                        <button type="reset" class="btn btn-default">重置</button>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>
</script>